#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

PHPVersion=""
if [ -d "/www/server/php/52/bin/php" ];then
	PHPVersion="52"
fi
if [ -d "/www/server/php/53/bin/php" ];then
	PHPVersion="53"
fi
if [ -d "/www/server/php/54/bin/php" ];then
	PHPVersion="54"
fi
if [ -d "/www/server/php/55/bin/php" ];then
	PHPVersion="55"
fi
if [ -d "/www/server/php/56/bin/php" ];then
	PHPVersion="56"
fi
if [ -d "/www/server/php/70/bin/php" ];then
	PHPVersion="70"
fi
if [ -d "/www/server/php/71/bin/php" ];then
	PHPVersion="71"
fi

/www/server/php/$PHPVersion/bin/php artisan key:generate